<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html lang="en_US">
    <head>
        <title><spring:message code="app.login.title" /></title>
        <link rel="stylesheet" type="text/css" href="${contextPath}/assets/jqueryplugin/jquery-validation/css/jquery.validate.css" />
    </head>
    <body class="login">
		<div class="row">
			<div class="main-login col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4">
				<div class="logo"><img src="${contextPath}/static/img/logo.png"></div>
				<!-- start: LOGIN BOX -->
				<div class="box-login">
					<h3>登录</h3>
					<p>请输入用户名和密码登录</p>
					<form class="form-login" action="" method="POST">
						<div class="errorHandler alert alert-danger no-display">
							<i class="fa fa-remove-sign"></i> 输入错误清检查
						</div>
						<fieldset>
							<div class="form-group">
								<span class="input-icon">
									<input type="text" class="form-control" name="username" placeholder="<spring:message code="app.user.title.username" />">
									<i class="fa fa-user"></i>
							    </span>
							</div>
							<div class="form-group form-actions">
								<span class="input-icon">
									<input type="password" class="form-control password" name="password" placeholder="<spring:message code="app.user.title.password" />">
									<i class="fa fa-lock"></i>
									<a class="forgot" href="#">忘记密码？</a>
							    </span>
							</div>
							<div class="form-actions">
								<label for="remember" class="checkbox-inline"><input type="checkbox" id="remember" name="remember">记住我</label>
								<button type="submit" class="btn btn-green pull-right">登录 <i class="fa fa-arrow-circle-right"></i></button>
							</div>
							<div class="new-account">没有账户?<a href="#" class="register">立即创建</a>
							</div>
						</fieldset>
					</form>
					<!-- start: COPYRIGHT -->
					<div class="copyright"><%-- <spring:message code="app.copyright" /> --%></div>
					<!-- end: COPYRIGHT -->
				</div>
				<!-- end: LOGIN BOX -->
			</div>
		</div>
		<script type="text/javascript" src="${contextPath}/assets/jqueryplugin/jquery-validation/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${contextPath}/assets/jqueryplugin/jquery-validation/localization/messages_zh.min.js"></script>
        <script type="text/javascript" src="${contextPath}/static/login/login.js"></script>
	</body>
</html>